const { defineConfig } = require('@vue/cli-service')

console.log(`output->vue.config`, process.env.BASE_URL)
module.exports = defineConfig({
  publicPath: './',
  transpileDependencies: true,
  lintOnSave: false,
  chainWebpack: config => {
    config.optimization.nodeEnv(false)
  },
  devServer: {
    proxy: {
      '/api': {
        target: 'https://www.zjkzyjt.cn',
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      },
    }
  }
})